<?php
$op = $_GET['name'];
$arr = array('张三','李四','王五','1');
echo in_array($op,$arr)?1:0;